import request from '@/utils/request'

// 查询考生作答列表
export function listRespond(query) {
  return request({
    url: '/exam/respond/list',
    method: 'get',
    params: query
  })
}

// 查询考生作答详细
export function getRespond(recordId) {
  return request({
    url: '/exam/respond/' + recordId,
    method: 'get'
  })
}

// 新增考生作答
export function addRespond(data) {
  return request({
    url: '/exam/respond',
    method: 'post',
    data: data
  })
}

// 修改考生作答
export function updateRespond(data) {
  return request({
    url: '/exam/respond',
    method: 'put',
    data: data
  })
}

// 删除考生作答
export function delRespond(recordId) {
  return request({
    url: '/exam/respond/' + recordId,
    method: 'delete'
  })
}
